package org.prosim.user.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.prosim.entity.IdEntity;



@Entity
@Table(name="ps_role")
public class Role extends IdEntity {
	
	private String code;
	private String name;
	
	
	
	/**
	 * @return the code
	 */
	@Column(name="role_code", nullable = false, unique = true)
	public String getCode() {
		return code;
	}
	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the name
	 */
	@Column(name="role_name", nullable = false, unique = true)
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	
	
}
